<script setup lang="ts">
import { useRouter } from 'vue-router';

const $router = useRouter();
const goToHome = () => {
  $router.push({ path: '/home' });
};
</script>
<template>
  <div class="hospital-header">
    <div class="content app-container">
      <div class="left" @click="goToHome">
        <img src="../../assets/images/logo.png" alt="" />
        <span>尚医通</span>
        <span>预约挂号统一平台</span>
      </div>
      <div class="right">
        <div class="help">帮助中心</div>
        <div class="loginbox">登录/注册</div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.hospital-header {
  width: 100%;
  height: 70px;
  background: #fff;
  position: fixed;
  top: 0;
  z-index: 999;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

  .content {
    width: 1200px;
    height: inherit;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .left {
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        width: 50px;
        height: 50px;
        margin-right: 5px;
      }
      span {
        color: var(--primary-color);
        margin-right: 10px;
        font-size: 22px;
        letter-spacing: 1px;
      }
    }

    .right {
      display: flex;
      align-items: center;
      color: var(--text-header-color);
      width: 166px;
      justify-content: space-between;
      > div {
        cursor: pointer;
      }
      > div:hover {
        color: var(--text-hover-color);
      }
      .help {
      }
      .loginbox {
      }
    }
  }
}
</style>
